package com.xingkeduo.pojo.table;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xingkeduo.pojo.enums.*;
import com.xingkeduo.utils.TableAnnotations;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 订单业务log
 * @author chi  2019-02-13 15:49
 **/
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
@TableName(value = "t_order_status_log")
public class OrderStatusLog extends BaseTable<OrderStatusLog> {

    @TableAnnotations("订单id")
    private long orderId;

    @TableAnnotations("动作")
    private OrderAction orderAction;

    @TableAnnotations("状态变更时间")
    private String time;

    @TableAnnotations("更改后状态")
    private OrderStatus newStatus;

    @TableAnnotations("更改前状态")
    private OrderStatus oldStatus;

    @TableAnnotations("操作人id")
    private String modifyId;

    @TableAnnotations("操作人name")
    private String modifyName;

    @TableAnnotations("备注")
    private String remark;

    @TableAnnotations("0,开始态,1,中间态,2,最终态")
    private int Status;


    @TableField(exist = false)
    private String newStatusName;
    @TableField(exist = false)
    private String modifyCode;
    @TableField(exist = false)
    private String modifyNickName;

}
